# 基础镜像
FROM  openjdk:8-jre
# author
LABEL author=lht

# 暴露8080端口
EXPOSE 8080
# 挂载目录
VOLUME /home/cozy/
# 创建目录
RUN mkdir -p /home/cozy
# 指定路径
WORKDIR /home/cozy
# 复制jar文件到路径
COPY ./gateway.jar /home/cozy/gateway.jar
# 启动网关服务
ENTRYPOINT ["java","-jar","gateway.jar"]